package com.heima.mongo.pojo;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document(collection = "User")
@Data
public class User {

    private String id;
    private String username;
    private String password;
    @Field("old")
    private Integer age;
}
